package cc.shacocloud.luanniao.core.config

import cc.shacocloud.luanniao.core.model.constant.StorageTypeEnum
import cc.shacocloud.luanniao.core.service.oss.local.LocalOssProperties
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.context.properties.NestedConfigurationProperty

/**
 *
 * @author 思追(shaco)
 */
@ConfigurationProperties(prefix = "luanniao.oss")
data class OssProperties(

    /**
     * 存储类型
     */
    val type: StorageTypeEnum,

    /**
     * 本地文件存储配置
     */
    @NestedConfigurationProperty
    val local: LocalOssProperties? = null,
)